<?php
class DigCms_View_Helper_DigCmsSelectItemType extends Zend_View_Helper_Abstract
{
    public function digCmsSelectItemType($name, $value = null, $attribs = array()) {
        $types = DigCms_Service_Item::getItemTypes();
        $options = array('Use Default Type');
        foreach($types as $module => $type) {
            $label = $type['module'];
            $label .= ' / ' . $type['name'];
            $options[$type['namespace']] = $label;
        }
        return $this->view->formSelect($name, $value, $attribs, $options);
    }
}
?>